package com.schoolegard.services;

import java.util.List;

import com.schoolgard.entitybean.Alarm4MapBean;
import com.schoolgard.entitybean.AlarmLog;
import com.schoolgard.entitybean.GridDataModel;
import com.schoolgard.entitybean.HdState;
import com.schoolgard.entitybean.Users;

public interface AlarmLogService {

	GridDataModel<AlarmLog> find4Page(AlarmLog alarmLog,Users user,int first,int max);

	void update(AlarmLog alarmLog);

	AlarmLog findById(Long id);

	boolean deal(Long id,Users user);
	
	/**
	 * 查找所有报警数据，封装成alarm4mapBean
	 * 也就是给报警数据加入地图位置标识
	 * @return
	 */
	public List<Alarm4MapBean> findAlarm4Map();

	int findCount();
	
	/**
	 * 统计告警数据
	 * @return
	 */
	List<Integer> countError(AlarmLog alarmLog,Users user);
	
	HdState findByGuid(String guid);
}
